package cn.schoolwow.quickdao.module.operation.service;

import cn.schoolwow.quickdao.module.operation.flow.upgrade.CheckUpgradeRequestFlow;
import cn.schoolwow.quickdao.module.operation.flow.upgrade.DatabaseUpgradeFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class DatabaseUpgradeCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new CheckUpgradeRequestFlow())
                .next(new DatabaseUpgradeFlow());
    }

    @Override
    public String name() {
        return "数据库升级语句";
    }
}
